//
//  HttpProxy.h
//  HiveApp
//
//  Created by Zhu Arashmen on 9/17/12.
//  Copyright (c) 2012 HiveView. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "BaseParser.h"
#import "JSONKit.h"


@interface HttpProxy : NSObject<ASIHTTPRequestDelegate>

@property(nonatomic,assign) int responseCode;
@property(nonatomic,retain) NSString* responseErrorMessage;
@property(nonatomic,retain) NSString* responseContent;


-(void) executeWithString:(NSString*) url :(NSString*)
                 receiver:(BaseParser<ParseExecutor>*)parser ;

-(void) executeWithURL:(NSURL*) url :(NSString*)
              receiver:(BaseParser<ParseExecutor>*)parser;

@end
